from decimal import Decimal

def sqr(x):
    if isinstance(x, int):
        return sqr_int(x)
    elif isinstance(x, float):
        return sqr_decimal(x)
    elif isinstance(x, list):
        return sqr_list(x)
    else:
        return "别瞎写！"

def sqr_int(x):
    res = x ** 2
    return res

def sqr_decimal(x):
    res = Decimal(x) * Decimal(x)
    return res

def sqr_list(x):
    res = []
    try:
        for i in x:
            res.append(i ** 2)
        return res
    except Exception as e:
        print('请检查列表参数！')
        return ''